<?php
/**
 * 标签管理
 */
class OrdersnController extends AdminBase{
	public function actionIndex(){
		$this->baseIndex('OrdersnModel');
	}
	public function actionDelete(){
		$this->baseDelete('OrdersnModel');
	}

	public function loadModel($id)
	{
		$model=OrdersnModel::model()->findByPk($id);
		if($model===null)
			$this->error('找不到记录');
		return $model;
	}
	public function actionView($id)
	{
		$this->render('view',array(
			'model'=>$this->loadModel($id),
		));
	}
		
}